home *** CD-ROM | disk | FTP | other *** search
- Path: news.oanet.com!usenet
- From: martp@oanet.com
- Newsgroups: comp.lang.c++
- Subject: Q Re: struct and functions
- Date: Sat, 03 Feb 1996 09:18:27 GMT
- Organization: Central News Services
- Message-ID: <4ev3ud$89s@hermes.oanet.com>
- NNTP-Posting-Host: dialin38.oanet.com
- X-Newsreader: Forte Free Agent 1.0.82
-
- Hi
-
- I'm a second semister student in Computer Systems, and have a question
- about passing structs, for Win programming.
- I have a struct DATA containing, amongst other things, HWND, and
- COLORREF.
- How do I define, call, and make a header for a function, so that I
- can just pass the DATA to the function, and separate the HWND and
- COLORREF in the header?
-
- struct DATA {
- HWND hWnd;
- COLORREF cColor;
- }stData;
-
- void fnChangeData( DATA stData );
-
- fnChangeColor( stData );
-
-
- void fnChangeColor( HWND hWnd, COLORREF cColor )
- {
-
- return;
- }
-
- Thanks,
- Martin Pete
-
- email martp@oanet.com
-
-